<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta charset="utf-8"/>
    <title>最家</title>
    <link rel="stylesheet" type="text/css" href="css/public.css"/>
    <link rel="stylesheet" type="text/css" href="css/mygxin.css"/>
</head>
<body>
<div class="head ding">
    <div  th:replace="common :: head" ></div>

</div>
<div class="address mt">
    <div class="wrapper clearfix"><a href="index.html" class="fl">首页</a><span>/</span><a
            href="mygxin.html">个人中心</a><span>/</span><a href="address.html" class="on">地址管理</a></div>
</div><!------------------------------Bott------------------------------>
<div class="Bott">
    <div class="wrapper clearfix">
        <div  th:replace="common :: zuoFl"></div>
        <div class="you fl"><h2>收货地址</h2>
            <div class="add">
                <div><a href="#2" id="addxad"><img src="img/jia.png"/></a><span>添加新地址</span></div>
                <div id="dizhi" ><p th:text="${session.address.name}"></p>
                    <p th:text="${session.address.phone}"></p>
                    <p th:text="${session.address.city}"></p>
                    <p th:text="${session.address.address}"></p></div>
            </div>
        </div>
    </div>
</div><!--编辑弹框--><!--遮罩-->
<div class="mask"></div>
<div class="adddz">
    <form action="/address/save" method="post">
        <input type="text" id="addressName" name="name" placeholder="姓名" class="on" required/>
        <input type="text" id="addressPhone" name="phone" placeholder="手机号" required/>
        <input type="text" id="addressCity" name="city" placeholder="省/市/县区,比如湖南省郴洲市桂阳县" required/>
        <textarea name="address" id="addresss" rows="" cols="" placeholder="详细地址" required></textarea>
        <div class="bc"><input type="submit" value="保存"/><input type="button" value="取消"/></div>
    </form>
</div>
<div class="readd">
    <form th:action="@{'/address/update?id='+${session.address.id}}" method="post">
        <input type="text" name="name" class="on" placeholder="姓名" th:value="${session.address.name}" required/>
        <input type="text" name="phone" placeholder="手机号" th:value="${session.address.phone}" required/>
        <input type="text" name="city" th:value="${session.address.city}" placeholder="省/市/县区,比如湖南省郴洲市桂阳县" required/>
        <textarea name="address" rows="" cols="" th:value="${session.address.address}" th:text="${session.address.address}" placeholder="详细地址" required></textarea>
        <div class="bc"><input type="submit" value="保存"/><input type="button" value="取消"/></div>
    </form>
</div><!--返回顶部-->
<div th:replace="common :: gotop"></div>

<div  th:replace="common :: footer"></div>

<script src="js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="js/user.js" type="text/javascript" charset="utf-8"></script>
</body>
<script>



</script>
</html>